#include "comm.hpp"
#include "Log.hpp"
int main()
{
    int fd = open(ipcPath.c_str(), O_WRONLY);
    if (fd < 0)
    {
        perror("open");
        exit(1);
    }
    string buffer;
    while (true)
    {
        cout<<"please input your message:";
        getline(cin,buffer);
        write(fd,buffer.c_str(),buffer.size());
    }
    
    close(fd);
    return 0;
}